# This file is part of xtb.
# SPDX-Identifier: LGPL-3.0-or-later
#
# xtb is free software: you can redistribute it and/or modify it under
# the terms of the Lesser GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# xtb is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# Lesser GNU General Public License for more details.
#
# You should have received a copy of the Lesser GNU General Public License
# along with xtb.  If not, see <https://www.gnu.org/licenses/>.

test(
  'C API',
  executable(
    'xtb_c_test',
    sources: files('c_api_example.c'),
    dependencies: xtb_dep_static,
    c_args: [
    '-DWITH_CPCMX=@0@'.format(cpx_dep.found() ? 1 : 0),
    ],
  ),
  env: xtbenv,
)
